package com.fanyouzhao.ehome.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @Author: fanyouzhao
 * @Date: 14:46 2021/5/8
 */
public class Admin {
    private Integer id;
    private String name;
    @JSONField(serialize = false)
    private String pwd;
    @JSONField(serialize = false)
    private String salt;
    private String phone;
    private Date regTime;

    public Admin() {
    }
    public Admin(Integer id, String name, String pwd, String salt, String phone, Date regTime) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.salt = salt;
        this.phone = phone;
        this.regTime = regTime;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", salt='" + salt + '\'' +
                ", phone='" + phone + '\'' +
                ", regTime=" + regTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPwd() {
        return pwd;
    }

    public String getSalt() {
        return salt;
    }

    public String getPhone() {
        return phone;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }
}
